// same as the former mlf.mcmanager.component.DataWrapper
// implement setValue api - doWrapper

function normal(data):Object
{
	Packages.log(this._name+".normal");
	Packages.log(data);
	for (var a in data)
	{
		Packages.log(a+": "+data[a]);
	}

	var content:Object=new Object();
	content.memberId=data.memberId;
	content.nickName=data.nickName;
	content.email=data.email;

	// ...

	var voData:Object=new Object();
	voData.type="doWrapper";
	voData.content=content;

	return voData;
}

function popup(data:Object):Object
{
	/*
	{"objects":[{"locationCity":"Shanghai","birthday":"0000-00-00","createTime":"2008-09-23 22:18:34.0","locationCountry":"China","accessTime":"2008-12-01 18:04:15.0","updateTime":"2008-09-23 22:17:41.0","image":"http://www.image.com/1.jpg","aboutMe":"this is member1","homepage":"http://www.mysite1.com","nickName":"member1","email":"member1@readjoy.cn","gender":"M","memberId":1,"lastLoginTime":"2008-12-01 17:44:11.0"}]}
	*/

	var content:Object=new Object();
	content.nickNameValue=data.nickName;
	content.emailValue=data.email;
	content.lastLoginTimeValue=data.lastLoginTime;
	content.genderValue=data.gender;
	content.birthdayValue=data.birthday;
	content.homePageValue=data.homepage;
	content.locationCityValue=data.locationCity;
	content.locationCountryValue=data.locationCountry;
	content.aboutMeValue=data.aboutMe;

	var voData:Object=new Object();
	voData.type="doWrapper";
	voData.content=content;

	return voData;
}